package com.Threecharacters.inherit_.Override.OverrideExerise;

public class Exercise {
    public static void main(String[] args) {

        //1.编写一个person类，包括属性/private (name,age),
        //构造器，方法say(返回自我介绍的字符串)


        //2.编写一个Student类，继承person类，增加id，score属性/private
        //以及构造器，定义say方法(返回自我介绍信息)


        //3.在main中，分别创建person和student对象，调用say方法进行自我介绍
        Person person = new Person(20,"张三");
        System.out.println(person.say());


        Student student = new Student("张三",20);//只是单纯的满足student有参构造器罢了
        System.out.println(student.say(1,100));



    }
}
